package com.jiang.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.jiang.entity.Admin;
import com.jiang.dao.AdminMapper;

import java.util.List;
import java.util.Map;

@Transactional
@Service
public class AdminService {
	@Autowired
	private AdminMapper adminMapper;

	public AdminMapper getAdminMapper() {
		return adminMapper;
	}
	public List<Map<String,Object>> show(){
		return adminMapper.show();
	}
	//登录
	public Admin login(String account,String password){
		return adminMapper.login(account,password);
	}
}